<darwin>: Use fink packages if available.
authorStefan Monnier <monnier@iro.umontreal.ca>
Tue, 27 Jan 2004 16:46:34 +0000 (16:46 +0000)
committerStefan Monnier <monnier@iro.umontreal.ca>
Tue, 27 Jan 2004 16:46:34 +0000 (16:46 +0000)
configure.in

index 8663ce9765c5a62cd6c91797aa8abb18821154e5..d5e4ba1e69b9e2a6283e67efbc95022a4b657684 100644 (file)
@@ -1135,6 +1135,12 @@ dnl see the `changequote' comment above.
     machine=powermac opsys=darwin
     # Define CPP as follows to make autoconf work correctly.
     CPP="${CC-cc} -E -no-cpp-precomp"
+    # Use fink packages if available.
+    if test -d /sw/include && test -d /sw/lib; then
+       GCC_TEST_OPTIONS="-I/sw/include -L/sw/lib"
+        CPP="${CPP} ${GCC_TEST_OPTIONS}"
+       NON_GCC_TEST_OPTIONS=${GCC_TEST_OPTIONS}
+    fi
   ;;
 
   ## AMD x86-64 Linux-based GNU system